# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blackarch-artwork
pkgver=80.fc42f1e
pkgrel=1
pkgdesc='Artwork for BlackArch Linux.'
arch=('any')
url='https://github.com/BlackArch/blackarch-artwork'
license=('custom:unknown')
makedepends=('git')
source=('git+https://github.com/BlackArch/blackarch-artwork.git')
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/blackarch/artwork"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md AUTHORS

  rm README.md AUTHORS

  cp -a * "$pkgdir/usr/share/blackarch/artwork/"
}

